package com.joy.eduservice.controller;

import com.joy.commonutils.R;
import org.springframework.web.bind.annotation.*;

/**
 * @author 焦恩越
 * @create 2021-11-28-19:30
 */
@RestController
@CrossOrigin //解决跨域
@RequestMapping("/eduservice/user")
public class EduLoginController {


    //login
    @PostMapping("/login")
    public R login(){
        return R.ok().data("token","admin");
    }


    //info
    @GetMapping()
    public R info(){
        return R.ok().data("roles","[admin]").data("name","admin").data("avatar","");
    }

}
